import pandas as pd
import matplotlib.pyplot as plt

# 读取数据并转置
df = pd.read_csv('data9_5.txt', header=None).T

# 绘制箱线图
plt.boxplot(df.unstack(), labels=df.columns)  # 根据列名设置标签

plt.show()